package com.jhw.ymcc.feign;

import com.jhw.ymcc.fallback.CourseMarketServiceFallbackFactory;
import com.jhw.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(contextId = "courseMarket", value = "service-course", fallbackFactory = CourseMarketServiceFallbackFactory.class)
public interface CourseMarketService {

    @RequestMapping(value = "/courseMarket/{id}",method = RequestMethod.GET)
    JSONResult get(@PathVariable("id")Long id);


}